//
//  JwBaseUIModel.h
//  JwPack
//
//  Created by 陈警卫 on 2024-08-19.
//

#import "JwBaseModel.h"
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface JwBaseUIModel : JwBaseModel

@property (nonatomic, strong) id<Ignore> jw_base;
@property (nonatomic, strong) id<Ignore> jw_data;
@property (nonatomic, strong) id<Ignore> jw_temp;

@property (nonatomic, assign) CGSize jw_cellSize; // 显示大小
@property (nonatomic, assign) CGSize jw_headSize; // 区头大小
@property (nonatomic, assign) CGSize jw_footSize; // 区尾大小

@property (nonatomic, assign) UIEdgeInsets jw_edgeInsets; // 边距
@property (nonatomic, assign) CGFloat jw_minimumLineSpacing; // 行间距
@property (nonatomic, assign) CGFloat jw_minimumInteritemSpacing; // 列间距

@property (nonatomic, strong) NSString *jw_cellName;
@property (nonatomic, strong) NSString *jw_headName;
@property (nonatomic, strong) NSString *jw_footName;

@property (nonatomic, assign) BOOL jw_isCellXib;
@property (nonatomic, assign) BOOL jw_isHeadXib;
@property (nonatomic, assign) BOOL jw_isFootXib;

@property (nonatomic, strong) NSIndexPath *jw_indexPath;

@property (nonatomic, strong) NSMutableArray *jw_subDatas; // 子数据

+ (void)registerTableView:(UITableView *)tableView datas:(NSArray<JwBaseUIModel *> *)datas;

+ (void)registerTableView:(UITableView *)tableView model:(JwBaseUIModel *)model;

+ (void)registerCollectionView:(UICollectionView *)collectionView datas:(NSArray<JwBaseUIModel *> *)datas;

+ (void)registerCollectionView:(UICollectionView *)collectionView model:(JwBaseUIModel *)model;

@end

NS_ASSUME_NONNULL_END
